import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
<<<<<<< HEAD
    // ccc:'333',
    // fff:[10,20,30]
    userInfo:[]
  },
  mutations: {
  //   // changeCCC(state,newValue){
  //   //   console.log(state);
  //   //   console.log(newValue);
  //   //   state.ccc = newValue
  //   },
  //   // changeFFF(state,newValue){
  //   //   state.fff =newValue
  //   // }
  updateUserInfo(state,newValue){
    state.userInfo = newValue
  }
=======
    ccc:'333',
    fff:[10,20,30]
  },
  mutations: {
    changeCCC(state,newValue){
      console.log(state);
      console.log(newValue);
      state.ccc = newValue
    },
    changeFFF(state,newValue){
      state.fff =newValue
    }
>>>>>>> vuex
  },
  actions: {
  },
  modules: {
  }
})
